package com.vegetable.modules.service.finance;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vegetable.modules.entity.baseData.InvoiceInfo;
import com.vegetable.modules.entity.baseData.po.InvoiceQueryPO;
import com.vegetable.modules.entity.baseData.po.InvoiceUpdatePO;

import java.util.Map;

/**
 * <p>
 * 发票管理 服务类
 * </p>
 *
 * @author wangruijie
 * @since 2024-04-15
 */
public interface IInvoiceService extends IService<InvoiceInfo> {

    int saveInvoice(InvoiceInfo invoiceInfo);

    Map<String, Object> list(InvoiceQueryPO po);

    Integer updateInvoiceBelong(InvoiceUpdatePO po) throws Exception;
    
    /**
     * 根据ID查询发票详情（包含商品明细）
     * @param id 发票ID
     * @return 发票信息
     */
    InvoiceInfo getInvoiceDetailById(Long id);
    
}